
package convertTestsToJUnit;

import ga.GAInfo;
import ga.Individual;
public class TestTransformationPipeline implements TestTransformation {

	private final TestTransformation[] phase;

	public TestTransformationPipeline(TestTransformation ... phase) {
		this.phase = phase;
	}

	@Override
	public Individual perform(Individual t,GAInfo gaInfo) {
		for (TestTransformation p : phase)
			t = p.perform(t,gaInfo);

		return t;
	}
}
